#ifndef _ARCH_IO_H
#define _ARCH_IO_H

#define readb(a)          (*(volatile unsigned char *)(a))
#define readw(a)          (*(volatile unsigned short *)(a))
#define readl(a)          (*(volatile unsigned int *)(a))

#define writeb(v,a)        (*(volatile unsigned char *)(a) = (v))
#define writew(v,a)        (*(volatile unsigned short *)(a) = (v))
#define writel(v,a)        (*(volatile unsigned int *)(a) = (v))

#endif /* _ARCH_IO_H */
